@import './variables.css';
@import './globals.css';
@import './habilidades.css';

/* Navbar */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    background-color: var(--white);
}

.navbar .navbar__content {
    padding: 3rem 4rem 1rem; /* Ajustar */
    display: flex;
    justify-content: space-between;
}

.navbar .navbar__content .navbar__links li {
    display: inline-block;
}

.navbar .navbar__content .navbar__links li:not(:last-of-type) {
    margin-right: 1rem;
}

.navbar .navbar__content .navbar__links a {
    padding: 1rem;
    display: inline-block;
    font-size: 1.8rem;
}

.navbar .navbar__content .navbar__links a:hover {
    color: var(--tertiary-color);
}

/*Navbar Mobile */

.navbar.active {
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.navbar .navbar__content .navbar__mobile,
.navbar .navbar__content .navbar__mobile .mobile__links {
    display: none;
}

/*Mobile */

@media only screen and (max-width: 768px) {
    .navbar .navbar__content .navbar__links {
        display: none;
    }

    .navbar .navbar__content .navbar__mobile {
        display: flex;
        align-items: center;
    }

    .navbar .navbar__content .navbar__mobile img {
        width: 3.6rem;
        height: 3.6rem;
        cursor: pointer;
    }

    .navbar .navbar__content .navbar__mobile.active .mobile__links {
        display: flex;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        position: absolute;
        top: 98%;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 0.4rem 0.5rem rgba(0, 0, 0, 0.1);
        z-index: 1;
    }

    .navbar .navbar__content .navbar__mobile.active .mobile__links li {
        margin-right: 0;
    }

    .navbar .navbar__content .navbar__mobile.active .mobile__links li a {
        padding: 1rem;
        display: block;
        text-align: center;
    }
}

/* Header */ 

header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    gap: 4rem;
    scroll-margin-top: 20rem;
}

header .header__left {
    margin-top: 5%;
    max-width: 62rem;
    flex: 1;
}

header .header__left p {
    margin-top: 2rem;
    margin-bottom: 4rem;
    max-width: 50rem;
}

@media only screen and (max-width: 768px) {
    header {
        flex-direction: column-reverse;
        text-align: center;
    }

    header .header__left p {
        margin: 2rem auto 4rem;
    }
}

/* About */

.about {
    background-color: var(--light-tertiary-color);
    display: flex;
    justify-content: space-between;  
    gap: 4rem;
    scroll-margin-top: 20rem;
    padding-top: 5rem;
}

.about .about__left {
    max-width: 40rem;
    flex: 1;
    margin: 0 auto;
}

.about .about__left p {
    margin: 1rem 0 2rem;
    text-align: justify;
}

.about .about__left ul {
    margin-left: -1.2rem;
}

.about .about__left ul li {
    display: inline-block;
}

.about .about__left ul li a {
    display: inline-block;
    padding: 1rem;
}

.about .about__right {
    max-width: 60rem;
    flex: 1;
    margin: 0 auto;
    text-align: justify;
}

.about .btn-cv {
    margin-top: 6rem;
    margin-left: auto;
}

.about img {
    width: 30px;
}

@media only screen and (max-width: 768px) {
    .about {
        flex-direction: column;
        align-items: center;
    }

    .about .about__left {
        max-width: 66rem;
        text-align: center;
        
    }

    .about .about__right {
        text-align: justify;
    }

    .about .btn-cv {
        margin-bottom: 5rem;
    }

    .secondary-title {
        text-align: center;
    }
}

/* Skills */

.skills {
    scroll-margin-top: 15rem;
}

.skills__item {
    background-color: #d1d1d121;
    border: 1px solid #ccc;
    padding: 15px;
    margin: 3px;
    box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.3);
}

.skills .skills__content {
    padding: 1rem 4rem;
    text-align: center;
    padding-top: 10rem;
}

.skills .skills__content .description {
    max-width: 56rem;
    margin: 0 auto 6rem;
}

.skills .skills__content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr)); 
    gap: 4rem;
}

.skills .skills__content ul li .image-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 50%;
    width: 7rem;
    height: 7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.skills .skills__content ul li h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
}

.skills .skills__img {
    width: 190%;
}

.btn-skills {
    margin-top: 6rem;
    margin-left: auto;
}

/* Academic */

.academic {
    background-color: var(--light-tertiary-color);
    scroll-margin-top: 15rem;
    padding: 6rem 4rem;
    text-align: center;
}

.academic__courses {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.academic__img {
    margin: 2rem 0 ;
    width: 35rem;
    height: 25rem;
    border: 2px outset black;
    background-color: #fff;
    object-fit: contain;
    background-color: #fff;
}

.academic__img img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background-color: #f0f0f0;
}

@media only screen and (max-width: 768px) {
    .academic__img {
        width: 20rem;
        height: 12rem;
        border: 2px outset black;
    }

    .academic__courses {
        display: flex;
        flex-direction: column;
    }
}

/* Projects */

.projects {
    margin-top: 8rem;
    margin-bottom: 16rem;
    scroll-margin-top: 15rem;
}

.projects .projects__content {
    max-width: 56rem;
    text-align: center;
    margin: 0 auto 6rem;
}

.projects ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin: 12rem 0; /* Ajustar */
}

.projects ul li.projects__reversed-list {
    flex-direction: row-reverse;
    text-align: right;
}

.projects ul li::not(:last-of-type) {
   margin-bottom: 12rem;
}

.projects ul li .image img {
    width: 100%;
    min-width: 40rem;
    max-width: 47rem;
    height: auto;
    border: 0.3rem solid #ccc;
}

.projects ul li .projects__info {
    max-width: 47rem;
}

.projects ul li .projects__info p {
    margin: 1rem 0 1rem;
    text-align: justify;
}

.projects ul li .projects__info a {
    font-weight: 600;
}

.projects__site {
    border: 1px solid var(--black);
    padding: 0.6rem 0.7rem;
    border-radius: 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    margin-right: 1rem;
    font-size: 15px;
}

.projects__repositorio {
    border: 1px solid var(--black);
    padding: 0.7rem 0.7rem;
    border-radius: 0.8rem;
    background: var(--white);
    color: var(--primary-color);
    font-size: 15px;
    
}

@media only screen and (max-width: 768px) {
    .projects ul li,
    .projects ul li.projects__reversed-list {
        flex-direction: column;
        text-align: center;
    }

    .projects ul li .projects__info {
        max-width: 66rem;
    }

    .projects ul li .image img {
        min-width: auto;
    }
}

/* Formulário */

.formulario {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 500px;
    margin: 0 auto;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.1rem;
}

button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

#message {
    resize: none;
}

/* Footer */

footer {
    background-color: var(--gray);
}

footer .footer__content {
    text-align: center;
    padding: 6rem 2rem 1rem;
    max-width: 47rem;
}

footer .footer__content .footer__contact span {
    display: block;
    font-weight: 500;
}

footer .footer__content ul li {
    display: inline-block;
    
}

footer .footer__content ul a {
    display: inline-block;
    padding: 1rem;
}

footer .footer__content .footer__copyright {
    font-size: 1.4rem;
}
